require.config({

    paths: {
        'angular': './lib/angular.min',
        'angularRoute': './lib/angular-route.min',
        'jQuery': './lib/jquery-1.11.0.min'
    },

    shim: {
        'angular': {
            exports: 'angular'
        },
        'angularRoute': ['angular'],
        'jQuery' : {
            exports: 'jQuery'
        }
    },
    priority: [
        "angular"
    ]
});

window.name = "NG_DEFER_BOOTSTRAP!";

require(['angular', 'app', 'routes'], function(angular, app, routes) {
    angular.element().ready(function() {
        angular.resumeBootstrap([app['name']]);
    });
});